package com.jiangjiang.eshop.promotion.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.google.common.collect.Lists;
import com.jiangjiang.eshop.order.dto.CouponDTO;
import com.jiangjiang.eshop.promotion.biz.PromotionActivityBiz;
import com.jiangjiang.eshop.promotion.dto.PromotionActivityDTO;
import com.jiangjiang.eshop.promotion.service.PromotionFacadeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName PromotionFacadeServiceImpl
 * @Description TODO
 * @Author jhw
 * @Date 2021/6/12 17:38
 * @Version 1.0
 **/
@Service
public class PromotionFacadeServiceImpl implements PromotionFacadeService {
    @Autowired
    private PromotionActivityBiz promotionActivityBiz;


    @Override
    public List<PromotionActivityDTO> listByGoodsId(Long goodsId) {
        return promotionActivityBiz.listByGoodsId(goodsId);
    }


    @Override
    public PromotionActivityDTO queryById(Long id) {
        return promotionActivityBiz.queryById(id);
    }

    @Override
    public List<CouponDTO> listValidByUserAccountId(Long userAccountId) {
        return Lists.newArrayList();
    }

    @Override
    public Boolean useCoupon(Long couponId, Long userAccountId) {
        return false;
    }
}
